package com.ccrfid.rmc6.repository.vehicle;

import com.ccrfid.rmc6.entity.vehicle.VehicleEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

public interface VehicleRepository extends Repository<VehicleEntity, Long>, SearchableRepository<VehicleEntity> {

    VehicleEntity getById(Long id);

    VehicleEntity getByCardNumber(Long cardNumber);

    VehicleEntity save(VehicleEntity entity);

    void deleteById(Long id);

    Boolean existsById(Long id);
}
